package com.dayu.service.serviceImpl;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.dayu.dao.test.PersonDao;
import com.dayu.entity.Person;
import com.dayu.service.PersonService;

/**
 * @author dayu
 * @date 2018/10/30
 */
@Service("personService")
public class PersonServiceImpl implements PersonService {

    @Autowired
    private PersonDao personDao;

    public Person queryPersonById(int id) {
        return personDao.queryPersonById(id);
    }

    public void insertPerson(Person person) {
        personDao.insertPerson(person);
    }

}
